ssh controller1 "rabbitmqctl stop"
ssh controller2 "rabbitmqctl stop"
ssh controller3 "rabbitmqctl stop"


ssh controller1 "rabbitmq-server -detached"
ssh controller2 "rabbitmq-server -detached"
ssh controller3 "rabbitmq-server -detached"

ssh controller2 " rabbitmqctl stop_app"
ssh controller2 "rabbitmqctl join_cluster rabbit@controller1"
ssh controller2 "rabbitmqctl start_app"

ssh controller3 " rabbitmqctl stop_app"
ssh controller3 "rabbitmqctl join_cluster rabbit@controller1"
ssh controller3 "rabbitmqctl start_app"

